﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ST.Buz.Base.Entity
{
	/// <summary>
	/// 微信应用配置
	/// </summary>
	[Table("WX_AppConfig")]
	public partial class WX_AppConfig
	{
		[Key]
		[Column("ID")]
		public int ID { get; set; }

		/// <summary>
		/// AppID
		/// </summary>
		[Column("AppID")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppID { get; set; }

		/// <summary>
		/// 小程序名称
		/// </summary>
		[Column("AppName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppName { get; set; }

		/// <summary>
		/// 小程序介绍
		/// </summary>
		[Column("AppDesc")]
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppDesc { get; set; }

		/// <summary>
		/// App密钥
		/// </summary>
		[Column("AppSecret")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppSecret { get; set; }

		/// <summary>
		/// App令牌
		/// </summary>
		[Column("AppToken")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string AppToken { get; set; }

		/// <summary>
		/// 商户ID
		/// </summary>
		[Column("MchID")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string MchID { get; set; }

		/// <summary>
		/// 商户支付密钥
		/// </summary>
		[Column("MchKey")]
		[StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
		public string MchKey { get; set; }

		/// <summary>
		/// 商户默认支付结果通知接收地址
		/// </summary>
		[Column("NotifyUrl")]
		[StringLength(256, ErrorMessage = "{0}长度不能超过{1}")]
		public string NotifyUrl { get; set; }

		/// <summary>
		/// 消息加密密钥
		/// </summary>
		[Column("EncodingAESKey")]
		[StringLength(50, ErrorMessage = "{0}长度不能超过{1}")]
		public string EncodingAESKey { get; set; }

		/// <summary>
		/// 应用类型（小程序、公众号）
		/// </summary>
		[Column("AppType")]
		public int AppType { get; set; }

		/// <summary>
		/// 域名
		/// </summary>
		[Column("Domain")]
		[StringLength(80, ErrorMessage = "{0}长度不能超过{1}")]
		public string Domain { get; set; }

		/// <summary>
		///	部署服务器IP地址
		/// </summary>
		[Column("SvrIP")]
		[StringLength(64, ErrorMessage = "{0}长度不能超过{1}")]
		public string SvrIP { get; set; }

		/// <summary>
		/// 排序
		/// </summary>
		[Column("Sort")]
		public int Sort { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("AddDate")]
		public DateTime AddDate { get; set; }

		/// <summary>
		/// 创建人ID
		/// </summary>
		[Column("AddManID")]
		public int AddManID { get; set; }

		/// <summary>
		/// 创建人
		/// </summary>
		[Column("AddManName")]
		[StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
		public string AddManName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Column("OrgID")]
		public int OrgID { get; set; }
	}
}
